package com.example.boot.controller.aysnc_task;

import com.example.boot.service.aysnc_task.IAysncService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class AysncController {

    @Resource
    private IAysncService aysncService;

    @GetMapping("/testAysncTask")
    public String testAysncTask(){
        aysncService.testAysncTask();
        return "success";
    }
}
